package cn.ffcs.bpm.service;

import java.util.List;

import org.hibernate.criterion.Criterion;

import cn.ffcs.base.service.BaseService;
import cn.ffcs.bpm.dao.NextTepDAO;
import cn.ffcs.bpm.model.NextTep;

/**
 * 服务层<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">pany</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author pany
 * @version $Id$
 */
public class NextTepService<D extends NextTep> extends BaseService<D>
implements INextTepService<D>
{
    private NextTepDAO nextTepDAO;
    public void remove(Object entity, String fParam,String fParamValue){
        nextTepDAO.remove(entity,fParam,fParamValue);
    }
    
    /**
     * 按查询条件获取总数
     * @return
     */
    public List<D> findBy(Criterion cond){
        return nextTepDAO.findBy(cond);
    }
    
    public List<D> find(Object entity){
        return nextTepDAO.find(entity);
    }
    
    public NextTepDAO getNextTepDAO()
    {
        return nextTepDAO;
    }
    
    public void setNextTepDAO(NextTepDAO nextTepDAO)
    {
        this.nextTepDAO = nextTepDAO;
    }
    
    
}
